package com.imooc.luckymoney.enums;

public enum ResultEnum {
    UNKNOWN_ERROR(-1,"未知错误"),
    SUCCESS(0,"成功"),
    ID_EMPTY_ERROR(1,"id不能为空"),
    ID_MISMATCH_ERROR(2,"输入了错误的参数请重试"),
    FIND_BY_ID_ERROR(3,"找不到指定id的红包"),
    FORM_IDENTIFY_ERROR(4,"表单验证未通过"),
    ;

    private Integer code;

    private String message;

    ResultEnum(Integer code, String message){
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
